new DamageSource(world.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(${generator.map(field$damagetype, "damagesources")}), ${input$directcause}, ${input$cause})